Part Number Hot Search : 
SA1088 UN1115 SB3200 2SD72 6509A DIAMOND GB200 F1001
Product Description
Full Text Search
 

To Download AN11247 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  AN11247 improved timekeeping accuracy with pcf85063, pcf8523 and pcf2123 using an external temperature sensor rev. 1 17 december 2012 application note document information info content keywords pcf85 0 63, pcf8523, pcf2123, rtc, a ccuracy, t imekeeping, t emperature sensor, t emperature c ompensation, c rystal, 32.768 khz abstract the temperature dependent characteristics of quartz crystal s prevent time keep ing also with state -of - the - art real time clocks from being highly accurate over a wide temperature range, unless corrective measures are implemented. this application note describes how the use of an external temperature sensor, placed in a location which will be at or near the same temperature as the quartz crystal attached to the rtc , can improve accuracy considerably. if the application i s already using a temperature sensor for some reason, only some extra firmware is needed without adding to the bill of material (bom). http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 i mproved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 2 of 16 contact i nformation for additional information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com revision history rev date description 01 20 12 1217 initial version, f irst r elease http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 3 of 16 1. introduction real - time c locks (rtc) have been around for a long time and many electronic systems include one for functions like keeping calendar time, tariff switching, time stamping , or waking up a system periodically to initiate certain actions, for example , doing some measurements. not all applications need the same level of accuracy, but when high accuracy is necessary like in applications that re ly on real time data where accuracy better than 5 ppm is needed, a standard rtc does not fulfil these. time keeping can only be as accurate as its reference. several environmental factors like humidity, vibration and pressure can influence rtc - accuracy but it is mainly the inferior characteristics of a quartz crystal over temperature , which result in deviations if temperature is changing. several techniques have been used to improve the timekeeping accuracy achieved using 32.768 khz crystals. this application note describes how the use of an external temperature sensor, placed in a location which will be at or near the same temperature as the rtc and its crystal can improve accuracy considerably. if the application i s already using a temperature sensor, only s ome extra firmware is needed without adding to the bill of material (bom). implementing temperature compensation using this method i s highly simplified if the rtc has an electronic tuning register . such a register allows influencing the clock speed by ad ding or subtracting counts from the oscillator divider chain. this changes the duration of the period of a single second without changing the oscillator frequency . the nxp rtcs pcf85063, pcf8563 and pcf2123 offer this functionality. 2. the issue when using an rtc without temperature compensation time keeping can sometimes be done using the built in oscillator in the system microcontroller. in many situations though, using an rtc is unavoidable. using a stand - alone rtc has several benefits: ? lower power consum ption ? frees the main system for time - critical tasks ? higher timekeeping accuracy however, even when using an rtc , the time keeping can only be as accurate as the reference used. a crystal's frequency characteristic depends on the shape or 'cut' of the cryst al. a manufacturer can control the crystal turnover frequency by the angle at which the crystal is cut. however, having to manufacture crystals with different cutting angles adds complexity and cost. a tuning fork crystal is usually cut in such a way that its frequency over temperature is a parabolic curve centered around 25 c, see fig 1 . this means that a tuning fork crystal oscillator will resonate close to its target frequency at room temperature, but will slow down when the temperature either increases or decreases. the frequency of a typical crystal at a specific temperature t is given by: ( ) [ ] 2 0 0 1 ttbff ?+= http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 4 of 16 here f is the actual frequency, f 0 is the frequency at room temperature, b is the parabolic coefficient, t is the temperature and t 0 is the turnover temperature, marked by the top of the parabolic curve. further , f 0 can be considered to consist of two components as off nom fff += 0 here f nom is the nominal frequency as specified and f off the offset from this nominal frequency which is a result of production spread, both at room temperature. ( ) [ ] 2 0 1 ttbfff off nom ?+? ? ? ? ? ? ? ? ? += t he frequency deviation nom nom nom f ff f f ? = ? in ppm, can now be expressed as : fig 1. the d eviation of frequency w.r.t. temperature of a typical 32.768 khz crystal in equation (1) there are three variables that influence the frequency response as a function of temperature. these are the parabolic coefficient b, the turnover temperature t 0 and the frequency offset f off at room temperature the crystal manufacturer specifies these parameters and typical values are t 0 = 25c, ?t 0 = 5c and f off = 30 ppm. the coefficient b has a very small spread for various crystals of the same type, but it has the largest effect on the shape of the parabolic curve of the frequency deviation as a function ( ) ( ) [ ] 2 0 2 0 1 ttb f f ttb f f nom off nom ?++?= ? (1) http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 5 of 16 of temperature. variation in the turnover temperature t 0 will shift the deviation curve left or right, variation in the offset at room temperature will shift it up or down. in practice the combination of variation in t 0 and offset at room temperature easily causes an (in) accuracy of 30 ppm at room temperature which corresponds to a time deviation of a bout 15 minutes p er year. in addition , there is the effect of temperature. typical values for b range from ? 0.035 ppm/c2 to ?0.04 ppm/c2. in a real application, and using b = - 0.04 means , that a clock built using a regular 32.768 khz tuning fork crystal will at room tem perature only have the frequency deviation resulting from the variations in t 0 and f off . h owever , it will lose an additional two minutes per year at 10 degrees celsius above (or below) room temperature and will lose an additional eight minutes per year at 20 degrees celsius above (or below) room temperature. two examples to get a better sense of the relationship between the real time and the deviation in ppm: ? a clock running 1 s per day too fast has an inaccuracy of 1/(3600*24) = 11.57 ppm ? a deviation of 1 s per week means 1.65 ppm 3. possible solutions a few but not many options are available to improve the accurac y . timekeeping accuracy can for example be improved through crystal screening, integrated crystals, keeping the crystal/rtc at a well specified te mperature, or using a temperature compen sated crystal oscillator (txco) like nxps pcf2127 and pcf2129. crystal screening means to select only those crystals for which the offset f off falls within a narrower range than the normal production spread. this would need to be done by the crystal manufacturer, and limits the vertical shift of the parabolic curve within a narrower range. besides adding to the cost, it does not alter the parabolic nature of the crystals frequency curve and only provides a small accuracy improvement at room temperature. integrating the crystal in the same package as the rtc is a way of supplying rtcs of which the performance is known. usually a crystal screening will have taken place. it is also possible to measure f off during production and correct for it by programming a dedicated register in the rtc if such a register is implemented . it reduces the initial deviance at room temperature but as the previous option, it does nothing to alleviate the frequency deviation as a result of changing temperatures. keeping the crystal within a narrow temperature range can be done by mounting the crystal in a temperature - controlled container but this will add considerable cost and complexity to the system. another option is to use a 32.768 khz te mperature - compensated crystal oscillator (tcxo) as the clock source for a stand - alone rtc but obviously this will add cost too . the principle on which tcxo s are based is simple. every crystal is optimized for a particular load capacitance. the value of this capacitance is included in the datasheet and deviations from this value will result in a shift in frequency of the oscillator. a tc x o uses this characteristic to implement a compensation mechanism. it includes a temperature sensor which measures the temp erature at certain intervals. the device includes a lookup table and the temperature measurements in combination with the http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 6 of 16 lookup table result in an output signal to apply a load - capacitance value for the integrated 32.768 khz crystal to achieve high accura cy. c hanging the load capacitance influences directly the oscillator frequency. it has the effect of flattening the parabolic curve, ideally to a perfectly straight horizontal line. by using an off - the - shelf tcxo , a high accuracy can be achieved without an y development or calibration effort. temperature compensation always implies measuring the temperature at which the crystal operates, at regular intervals. then , according to the measured temperature , some action needs to be taken like adjustment of the crystal loading to the clock source as implemented in conventional tcxos or using an algorithm which reads and updates registers in the rtc. th e latter is the approach used in this application note for the nxp r eal -t ime c locks with an electronic tuning regis ter: pcf85 0 63 , pcf8523 and pcf2123 . 4. the rtc s with a tuning register since this application note deals specifically with the nxp rtcs which contain an electronic tuning or offset register ( pcf85 0 63 , pcf8523, pcf2123) below a short introduction to th ese device s is given. 4.1 general description the pcf85 0 63 , pcf8523 and pcf2123 are cmos r eal -t ime c lock/calendar s optimized for low power consumption. they contain a set of 8- bit registers with an auto - incrementing address register, an on - chip 32.768 khz oscilla tor with two integrated oscillator capacitor s , a frequency divider which provides the source clock for the real - time clock/calend a r (rtc), a programmable clock output and optionally a timer and an alarm . the r eal -t ime c lock family pcf85063 (three versions) is optimized for applications where very little space is available, but still contains the key features expected from a state of the art time reference. typical applications are digital cameras, portable handheld gaming consoles, self care medical device s and printers/faxes. the pcf85063tp tracks time and date. aside from electronic tuning, a frequency output and an interrupt on every 30 s or 60 s can be enabled. it interfaces via a fast - mode i 2 c- bus . the pcf85063atl and pcf85063btl feature in addition an alarm facility and a programmable countdown timer, controlled via either i 2 c- or spi - bus. the pcf2123 is an ultra low - power r eal -t ime c lock featuring the above mentioned features. it communicates via the spi - bus with a maximum data rate of 6.25 mbit/s. th e pcf8523 is an ultra low - power r eal -t ime c lock which has in addition to the pcf2123 an integrated battery back up circuit. i t communicates via the i 2 c- bus. table 1 shows a quick comparison between the various types. http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 7 of 16 table 1. comparison of target real time clocks features pc f 85 06 3 family ; t iny, l ow power ultra low power pcf85 0 63 tp pc f 85 063atl pcf85 06 3 btl pcf2123 pcf8523 unique features l ow power consumption , tiny package l ow power consumption, tiny package l ow powe r consumption, tiny package e xtremely low power consumption e xtremely low power consumption, battery back up type of interface i 2 c i 2 c spi spi i 2 c max . i nterface bus speed 400 khz 400 khz 8 mhz 6.25 mhz 1 mhz ram 1 byte 1 byte 1 byte no no year / lea p year tracking yes / yes yes / yes yes / yes yes / yes yes / yes year counter 2 digit (99 years) 2 digit (99 years) 2 digit (99 years) 2 digit (99 years) 2 digit (99 years) electronic tuning register yes yes yes yes yes programmable alarm and (count down) timer functions no yes yes yes yes oscillator stop detector yes yes yes yes yes battery back - up switch no no no no yes clkout output p ush - pull p ush - pull (w ith clkoe) p ush - pull (w ith clkoe) o pen drain (w ith clkoe) o pen drain programmable clkout fr equencies 32.768 khz, 16.384 khz, 8.192 khz, 4.096 khz, 2.048 khz, 1.024 khz, 1 hz, o ff (clkout=low) 32.768 khz, 16.384 khz, 8.192 khz, 4.096 khz, 2.048 khz, 1.024 khz, 1 hz, o ff (clkout=low) 32.768 khz, 16.384 khz, 8.192 khz, 4.096 khz, 2.048 khz, 1.024 khz, 1 hz, o ff (clkout = hi - z) 32.768 khz, 16.384 khz, 8.192 khz, 4.096 khz, 2.048 khz, 1.024 khz, 1 hz, o ff (clkout = hi - z) 32.768 khz, 16.384 khz, 8.192 khz, 4.096 khz, 1.024 khz, 32 hz, 1 hz, o ff (clkout = hi - z) 2 integrated oscillator capacitor s f or c l = 7 pf or c l = 12.5 pf f or c l = 7 pf or c l = 12.5 pf f or c l = 7 pf or c l = 12.5 pf f or c l = 7 pf f or c l = 7 pf or c l = 12.5 pf supply voltage range 1.8 v C 5.5 v 1.8 v C 5.5 v 1 . 8 v C 5 . 5 v 1.6 v C 5.5 v 1 .6 v C 5.5 v clock operating voltage 0 . 9 v C 5.5 v 0 . 9 v C 5.5 v 0 . 9 v C 6.0 v 1.1 v C 5.5 v 1. 0 v C 5.5 v typical current consumption at v dd = 3 v 2 7 0 na 27 0 na 2 70 n a 1 1 0 na 1 50 na operating temperature range - 40 c to +85 c - 40 c to +125 c - 40 c to +85 c - 40 c to +85 c - 40 c to + 8 5c packages hwson8 h x son10 hxson10 u [1] , hvqfn16, tssop14 u [1] , hvson8, so8, tssop14 [1] naked die http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 8 of 16 for more detailed information about these device s , register structure and how to set them, please refer to the respective datasheet s which are available at www.nxp.com . 4.2 offset register the pcf85063, pcf8523 and pcf2123 incorporate an offset register which can be used to implement several functions, such as: ? accuracy tuning ? t emperature compensation ? ageing adjustment the offset is made once every two hours in the normal mode (all types) or more frequent in the course mode. in course mode the offset is made for the: ? pcf85063 every four minutes ? pcf8523 once per minute ? pcf2123 onc e per hour for pcf85063 and pcf8523, each lsb will introduce an offset of 4.34 ppm for the normal mode and 4.069 ppm for the course mode. the values of 4.34 ppm and 4.069 ppm are based on a nominal 32.768 khz clock. the offset value is coded in twos compl ement giving a range of +63 lsb to - 64 lsb. table 2. offset values (in period time, not frequency) for pcf85063 and pcf8523 offset[6:0] offset value in decimal offset value in ppm normal mode course mode 0111111 +63 +273.420 +256.347 0111110 +62 +269.080 +252. 278 : : : : 0000010 +2 +8.680 +8.138 0000001 +1 +4.340 +4.069 0000000 [1] 0 0 [1] 0 [1] 1111111 - 1 - 4.340 - 4.069 1111110 - 2 - 8.680 - 8.138 : : : : 1000001 - 63 - 273.420 - 256.347 1000000 - 64 - 277.760 - 260.416 [1] default value the correction is made by adding or subtracting clock correction pulses, thereby changing the period of a single second but not by changing the oscillator frequency. by adding clock pulses , the rtc is sped up (the crystal curve moves up) . b y subtracting clock pulses , the time slows down. thus adding or subtracting clock pulses results in moving the curve in fig 1 up or down in order to approach (ideally) 0 ppm accuracy at the given temperature . the offset values for pcf2123 are different and are g iven in table 3 . http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 9 of 16 table 3. offset values (in period time, not frequency) for pcf2123 offset[6:0] offset value in decimal offset value in ppm normal mode course mode 0111111 +63 +136.710 +273.420 0111110 +62 +134.540 +269.080 : : : : 0000010 +2 +4.340 +8.680 0000001 +1 +2.170 +4.340 0000000 [1] 0 0 [1] 0 [1] 1111111 - 1 - 2.170 - 4.340 1111110 - 2 - 4.340 - 8.680 : : : : 1000001 - 63 - 136.710 - 273.420 1000000 - 64 - 138.880 - 277.760 [1] default value 4.3 initi al calibration in order to achieve highest accuracy , it is possible to tune the frequency before any temperature compensation is implemented. thus it is possible to compensate for variations in t 0 and f off in order to ensure that the crystal runs at or nea r 32.768 khz at room temperature. the rtcs mentioned in this manual all have the option to output the buffered crystal frequency to the pin clkout. in order to output the buffered crystal frequency at output clkout, the clkout signal has to be enabled and the clkout frequency set to 32.768 khz. the frequency can now be tuned using the electronic tuning register. (1) this typical application diagram shows cklout enabled. the buffered crystal frequency is available at pin clkout. fig 2. oscillator tuning http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 10 of 16 if the re quired accuracy is within 1 second per day , a frequency counter with a resolution of at least 8 digits and an accuracy of 1 ppm is required. the accuracy of 1 ppm equals 32.768 mhz and thus if the clock is running at a nominal 32.768 khz: ? +1 ppm = 32768.03 27 hz; ? - 1 ppm = 32767.9673 hz (1 day has 86400 s, 1s/day = 11.6 ppm). the oscillator should be tuned while the application is at the turnover temperature t 0 of the crystal. the recommended workflow is giv en in fig 3 . in th at example the clock runs by 14.6484 ppm too fast. a negative correction would maybe be expected, but the offset value s in table 2 and table 3 refer to the period time instead of to the frequency. an increased oscillator frequency causes a shortened period time. therefore the period time must be extended. this results in the positive correction pulse values. (1) the numbers in this example are valid only for pcf85063 and pcf8523 fig 3. offset calibration calculation workflow http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 11 of 16 5. procedure to correct time deviations due to temperature variations in order to implement the temperature compensation algorithm described in this application note, a microcontroller (the system microcontroller) as well as an external temperature sensor to measure the ambient temperature are required . the temperature sensor must be located such that the measured temperature is a good representation of the crystal temperature. how often the temperature needs to be measured depends on the application and is a parameter to be chosen by the system designer. the microcontroller has now the additional task to initiate temperature measurement, determine the new tuning register value and to set this register in the rtc. the rtc needs to send an interrupt to the microcontroller on regular intervals, telling it to measure the temperature. if it is a low power application , where the microcontroller may be in standby , waking up the microcontroller ( and the temperature sensor) obviously will increase power consumption. thus how often this is done will be a compromise between accuracy requirements and power consumption. the interval should be chosen such, that the temperature is not expected to change much during the chosen timeframe. a value could be once per minute, or once per five minutes . in order to implement all steps correctly, details that have to be taken into account for the practical implementation are described in sections 5.1 until 5.3 . 5.1 step 1: setting th e timer the first step is to decide at which intervals the microcontroller should measure the temperature and set the timer accordingly. the rtcs described here have a freely programmable 8- bit countdown timer which can be used for this, except pcf85063tp which only offers the choice of a 30 s and a 1 minute interrupt. the timer control register s of the other rtcs determine the source clock frequenc y f or the countdown timer and enable or disable the timer. the timer counts down from a software - loaded 8 - bit binary value. at the end of every countdown, the timer sets the timer flag (tf). the bit tf may only be cleared by software. the asserted tf can be u sed to generate an interrupt (int). suppose that the rtc used is the pcf8523 and an interrupt to the microcontroller needs to be generated every 5 minutes. further suppose that timer b is used. this timer needs to be switched on by bit tbc in register tmr_ clkout_ctrl at address 0 fh . the generation of interrupts is controlled via bit ctbie (register control_2) and should be set to enable timer b. register tmr_b_reg (13h) would have to be l oaded with 5, assuming a source clock frequency of 1 / 60 hz which results in a clock giving one pulse per minute. this can be achieved by setting the bits tbq[2:0] in register tmr_b_freq_ctrl (at address 12h) to 011. this is just an example ; other countdown frequencies can be selected as well as other time intervals. refer to the datasheets for the control register settings for each type. 5.2 step 2 : find the time deviation in order to get the time deviation that must be compensated for a given temperature, a lookup table or a second order equation (parabola) derived from measure ments done during the development phase can be used . this table /equation should contain the deviation in ppm relative to the nominal conditions and is specific for the crystal used. if the type of crystal is changed, a new lookup table /equation is necessar y. this can http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 12 of 16 require quite some effort. furthermore no compensation for the quartz crystal aging is included. for best results it is important to have an accurate initial tuning at the turn over temperature , see section 4.3 . this correction method uses no feedback, so it is importan t to have a precise table or equation since any mistakes in this input will result in false c ompensation values. 5.2.1 creating a lookup table or second order equation if the datasheet of the crystal used incorporate s the parabolic curve and a table with th es e deviations , this can be used under the condition that the resolution of the data is high enough. otherwise a high resolution frequency counter is necessary to measure and record how long a nominal 1s period out of the rtc actually takes when the crystal/rtc combination is subject to varying temperatures. in order to cover the whole temperature range for which the rtc is specified, measurements should be done from - 40 c to + 85 c. the oscillator frequency should not be measured by attaching the frequency meter to the osco pin which would add capacitance to this pin and thus detune the frequency with a f . in worst case the oscillator could even stop running . after the data has been collected , it can be put into an excel spreadsheet from where the equation can be generated. a less time consuming method is to use the second order equation and the value fo r b given in the crystals datasheet. the production spread of b for a certain type of crystal is small. from equation (1) on page 4 the frequency deviation for a given temperature follows and with it the correction value can be calculated. the microcontroller c an calculate the deviation between the results of this equation and the temperature measured. alternatively the designer can create a lookup table from which the deviations are read. 5.2.2 example below such a lookup table is given for a crystal with b = ? 0.035 ppm/c2 and t 0 = 25 c for temperatures from - 40 c to +85 c in steps of 5 c. tolerances in t 0 and f off have not been taken into account and thus the equation used to calculate ?f/f in table 4 reduces to equation (2) below. for the lookup table, only the columns temperature t and offset value in decimal are relevant. table 4. example l ookup tab le ( only valid for pcf85063 and pcf8523) only the columns ? temperature t ? and ?offset value in decimal? need to be included paraboli c c oefficient b [ppm/c 2 ] temperature t [c] temperature offset [c] deviation ?f/f [ppm] offset value in decimal (normal mode) - 0.035 - 40 - 65 - 147.88 - 34 - 0.035 - 35 - 60 - 126.00 - 29 - 0.035 - 30 - 55 - 105.88 - 24 2 0 )( ttb f f nom ?= ? (2) http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 13 of 16 paraboli c c oefficient b [ppm/c 2 ] temperature t [c] temperature offset [c] deviation ?f/f [ppm] offset value in decimal (normal mode) - 0.035 - 25 - 50 - 87.50 - 20 - 0.035 - 20 - 45 - 70.88 - 16 - 0.035 - 15 - 40 - 56.00 - 1 3 - 0.035 - 10 - 35 - 42.88 - 10 - 0.035 - 5 - 3 0 - 31.50 - 7 - 0.035 0 - 25 - 21.88 - 5 - 0.035 5 - 20 - 14.00 - 3 - 0.035 10 - 15 - 7.88 - 2 - 0.035 15 - 10 - 3.50 - 1 - 0.035 20 - 5 - 0.88 0 - 0.035 25 0 0.00 0 - 0.035 30 5 - 0.88 0 - 0.035 35 10 - 3.50 - 1 - 0.035 40 15 - 7.88 - 2 - 0.035 45 20 - 14.00 - 3 - 0.035 50 25 - 21.88 - 5 - 0.035 55 30 - 31.50 - 7 - 0.035 60 35 - 42.88 - 10 - 0.035 65 40 - 56.00 - 1 3 - 0.035 70 45 - 70.88 - 16 - 0.035 75 50 - 87.50 - 20 - 0.035 80 55 - 105.88 - 24 - 0.035 85 60 - 126.00 - 29 5.3 step 3 : update the electronic tuning register in the previous step the required setting for the electronic tuning register (programmable offset register) for compensating varying temperatures was found. this value must not directly be written in the register , because in section 4.3 initial calibration the correct clock speed for the turnover temperature was set . directly writing in to the offset register would overwrite this setting. therefore, the value found in the look up table must be added to the already programmed initial setting and this value must be written in to the offset register. http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 december 2012 14 of 16 6. nxp demonstration board om6297 a fast way to start developing an algorithm and test its working is possible by using the nxp demonstration board om6297 . this board was designed to illustrate the operation of a n ultra low power spi based real time clock (pcf2123) along with an industry standard 8 - character alphanumeric lcd an d an lm75b temperature sensor. the microcontroller chosen for this application is the nxp p89lpc932a1, which is a single - chip microcontroller available in various packages. in the rtc d emo board, the plcc28 package is used. the lpc932 is based on a high performance architecture which works at up to six times the rate of standard 80c51 devices. the lpc932 has many integrated functions to reduce component count, board space, and system cost. it offers 8k b of on - chip f lash c ode memory, 768 bytes of d ata ram along with 512 bytes of d ata eeprom storage, and supports hardware i2c - bus and spi - bus for communication. the lpc932 supports multiple additional i/o channels , counters/timers, pwms, and analog comparators. please see the datasheet for full details. the available temperature sensor is the nxp lm75bd in a standard so8 package. the lm75b is a pin for pin replacement for the industry standard lm75 and lm75a with an improved temperature resolution of 0.125 c. it has a wide supply range, and an i2c - bus interface. temperatures can range from ?55 c to +125 c with programmable temperature thresholds. the lm75b is id eal for low - power designs , as it only uses a current of 1.0 a in standby mode. with both the rtc and temperature sensor onboard, it is easy to start developing an application and implementing the algorithm as described here. the lcd driver chosen is the nxp pcf8562 in a plastic 48 pin tssop package . the pcf8562 has a wide supply voltage range, an i2c - bus interface for commands and control and can drive up to 128 - segments using a 1:4 multiplex rate . the board also contains a 10 - pin header that allows the lpc932a1 to be reprogrammed using serial icp (in circuit programming) from a pc. a simple icp programmer called usb - icp is available from future designs, inc. to allow any pc with a usb port to easily program the lcd d emo b oard. the usbicp also supports other nxp microcontrollers that use standard icp programming. please consult fdis website for more details on usb - icp. 7. references the documents listed below provide further useful information. they are available at nxps website www.nxp.com . a. product data sheet s pcf85 0 63 . b. product data sheet pcf8523 . c. product data sheet pcf2123 . d. an10652 ; improved timekeeping accuracy with pcf8563 using external tempera ture sensor, rev 1, 2 november 2007. e. um10301 ; user manual for nxp real time clocks, rev 1, 23 december 2008 . f. um10204 ; i 2 c- bus specification and user manual. rev 4 , 1 3 february 20 12 . http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor AN11247_1 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2012 . all rights reserved. application note rev. 1 17 decembe r 2012 15 of 16 8. legal information 8.1 definitions draft the document is a draft version only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. 8.2 disclaimers limited warranty and liability information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representation s or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive , special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes nxp semiconductors reserves the right to make changes to information published in this document, including without limitation spe cifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life - critical or safety - critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customers own risk. applications applicati ons that are described herein for any of these products are for illustrative purposes only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. custo mers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liability for any assistance with applications or customer product design. it is customers sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customers applications and products planned, as well as for the planned application and use of customers third party customer(s). customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the cu stomers applications or products, or the application or use by customers third party customer(s). customer is responsible for doing all necessary testing for the customers applications and products using nxp semiconductors products in order to avoid a d efault of the applications and the products or of the application or use by customers third party customer(s). nxp does not accept any liability in this respect. translations a non - english (translated) version of a document is for reference only. the english version shall prevail in case of any discrepancy between the translated and english versions. export control this document as well as the item(s) described herein may be subject to expo rt control regulations. export might require a prior authorization from competent authorities. 8.3 trademarks notice: all referenced brands, product names, service names and trademarks are property of their respective owners. http://www..net/ datasheet pdf - http://www..net/
nxp semiconductors AN11247 improved timekeeping accuracy using an external temperature sensor please be aware that important notices concerning this document and the product(s) described herein, have been included in the section 'legal information'. ? nxp b.v. 2012 . a ll rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com date of release: 17 december 2012 document identifier : AN11247_1 9. contents 1. introduction ......................................................... 3 2. the issue when using an rtc without temperature compensation ................................ 3 3. possible solutions ............................................... 5 4. the rtcs with a tuning register ........................ 6 4.1 general description ........................................... 6 4.2 offset register ..................................................... 8 4.3 initial calibration ................................................. 9 5. procedure to corr ect time deviations due to temperature variations ...................................... 11 5.1 step 1: setting the timer ................................... 11 5.2 step 2: find the time deviation ......................... 11 5.2.1 creating a lookup table or second order equation ......................................................................... 12 5.2.2 example ........................................................... 12 5.3 step 3: update the electronic tuning register .... 13 6. nxp demonstration board om6297 ................. 14 7. references ......................................................... 14 8. legal information .............................................. 15 8.1 definitions ........................................................ 15 8.2 disclaimers ....................................................... 15 8.3 trademarks ...................................................... 15 9. contents ............................................................. 16 http://www..net/ datasheet pdf - http://www..net/


▲Up To Search▲   

 
Price & Availability of AN11247

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X